# == Schema Information
#
# Table name: tags
#
#  id             :integer          not null, primary key
#  name           :string
#  articles_count :integer
#  created_at     :datetime         not null
#  updated_at     :datetime         not null
#

class Tag < ApplicationRecord
  has_and_belongs_to_many :articles, counter_cache: :tags_count #todo check if it works
end
